package com.ruoyi.keep.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.keep.mapper.WxWalletMapper;
import com.ruoyi.keep.domain.WxWallet;
import com.ruoyi.keep.service.IWxWalletService;

/**
 * 微信钱包Service业务层处理
 * 
 * @author wxy
 * @date 2024-08-16
 */
@Service
public class WxWalletServiceImpl implements IWxWalletService 
{
    @Autowired
    private WxWalletMapper wxWalletMapper;

    /**
     * 查询微信钱包
     * 
     * @param id 微信钱包主键
     * @return 微信钱包
     */
    @Override
    public WxWallet selectWxWalletById(Long id)
    {
        return wxWalletMapper.selectWxWalletById(id);
    }

    /**
     * 查询微信钱包列表
     * 
     * @param wxWallet 微信钱包
     * @return 微信钱包
     */
    @Override
    public List<WxWallet> selectWxWalletList(WxWallet wxWallet)
    {
        return wxWalletMapper.selectWxWalletList(wxWallet);
    }

    /**
     * 新增微信钱包
     * 
     * @param wxWallet 微信钱包
     * @return 结果
     */
    @Override
    public int insertWxWallet(WxWallet wxWallet)
    {
        return wxWalletMapper.insertWxWallet(wxWallet);
    }

    /**
     * 修改微信钱包
     * 
     * @param wxWallet 微信钱包
     * @return 结果
     */
    @Override
    public int updateWxWallet(WxWallet wxWallet)
    {
        return wxWalletMapper.updateWxWallet(wxWallet);
    }

    /**
     * 批量删除微信钱包
     * 
     * @param ids 需要删除的微信钱包主键
     * @return 结果
     */
    @Override
    public int deleteWxWalletByIds(Long[] ids)
    {
        return wxWalletMapper.deleteWxWalletByIds(ids);
    }

    /**
     * 删除微信钱包信息
     * 
     * @param id 微信钱包主键
     * @return 结果
     */
    @Override
    public int deleteWxWalletById(Long id)
    {
        return wxWalletMapper.deleteWxWalletById(id);
    }
}
